class GetChatList {
  String id;
  String userId;
  String driverId;
  String orderId;
  String createTime;
  String createBy;
  String updateTime;
  String updateBy;
  String messageId;
  String userName;
  String headimgurl;
  num unread;
  String lastMessage;

  GetChatList(
      {this.id,
      this.userId,
      this.driverId,
      this.orderId,
      this.createTime,
      this.createBy,
      this.updateTime,
      this.updateBy,
      this.messageId,
      this.userName,
      this.headimgurl,
      this.unread,
      this.lastMessage});

  GetChatList.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    driverId = json['driver_id'];
    orderId = json['order_id'];
    createTime = json['create_time'];
    createBy = json['create_by'];
    updateTime = json['update_time'];
    updateBy = json['update_by'];
    messageId = json['message_id'];
    userName = json['user_name'];
    headimgurl = json['headimgurl'];
    unread = json['unread'];
    lastMessage = json['last_message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['driver_id'] = this.driverId;
    data['order_id'] = this.orderId;
    data['create_time'] = this.createTime;
    data['create_by'] = this.createBy;
    data['update_time'] = this.updateTime;
    data['update_by'] = this.updateBy;
    data['message_id'] = this.messageId;
    data['user_name'] = this.userName;
    data['headimgurl'] = this.headimgurl;
    data['unread'] = this.unread;
    data['last_message'] = this.lastMessage;
    return data;
  }
}
